#include "product.h"
#include "factory.h"

#include <iostream>

using namespace std;

int main(int argc, char * argv[])
{

	Factory *pFac = new ConcreteFactory();
	Product *pPro1, *pPro2;
	cout<<"-------pPro1----------\n"<<endl;
	pPro1 = pFac->CreateProduct();	
	//cout<<"-------pPro2----------\n"<<endl;
	//pPro2 = pFac->CreateProduct();

	delete pFac;

	return 0;
}

/* 缺少释放内存 delete */